<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:a="http://richfaces.org/a4j">

    <head>
        <title>
            <ui:insert name="title"/>
        </title>
        <link rel="stylesheet" href="#{ctxPath}/resources/css/main.css" type="text/css"/>
        <ui:insert name="headContent"/>
    </head>
    <body>
        <f:view locale="#{locale}">
            <div class="topPanel">
                <ui:include src="/content/panels/topPanel.xhtml"/>
            </div>
            <table cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td class="leftMenu">
                        <ui:include src="/content/panels/leftMenu.xhtml">
                            <ui:param name="selectedMenu" value="#{selectedMenu}"/>
                            <ui:param name="advertType" value="#{advertType}"/>
                            <ui:param name="productType" value="#{productType}"/>
                            <ui:param name="vehicleType" value="#{vehicleType}"/>
                            <ui:param name="vehicleCategory" value="#{vehicleCategory}"/>
                        </ui:include>
                    </td>
                    <td class="mainContent">
                        <a:outputPanel ajaxRendered="true">
                            <ui:include src="/content/components/messagesComponent.xhtml">
                                <ui:param name="hideMessages" value="#{hideMessages}"/>
                            </ui:include>
                        </a:outputPanel>

                        <ui:insert name="body"/>
                    </td>
                    <td class="rightPanel">
                        <ui:include src="/content/panels/rightPanel.xhtml"/>
                    </td>
                </tr>
            </table>
            <div class="bottomPanel">
                <ui:include src="/content/panels/bottomPanel.xhtml"/>
            </div>
        </f:view>
    </body>

</html>